Skip to content

Conversation

bastelfreak
Copy link
Contributor

No description provided.

Copy link
Collaborator

@genebean genebean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a public repo with packages now or is this to support internal packaging?

Optional[Sensitive[String[1]]] $password_file_content = undef,
Stdlib::HTTPUrl $source_url = 'https://github.com/grafana/loki/releases/download',
Enum['package', 'archive'] $install_method = 'archive',
Enum['installed', 'absent'] $package_ensure = 'installed',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also allow latest or simply any valid string which would allow pinning versions.

service { 'promtail':
ensure => $promtail::service_ensure,
enable => $promtail::service_enable,
require => Systemd::Unit_file['promtail.service'],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this line being removed?

Copy link

@zipkid zipkid Oct 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you use a package the systemd unit file would be managed by the package and not as a resource in Puppet.
See block #9-13 in this file

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that it would make sense then to add a before param to the unit file then...

@genebean
Copy link
Collaborator

@bastelfreak just checking in on the couple of comments above

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Comment on lines +9 to 14
if $promtail::install_method == 'archive' {
systemd::unit_file { 'promtail.service':
source => 'puppet:///modules/promtail/promtail.service',
notify => Service['promtail'],
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if $promtail::install_method == 'archive' {
systemd::unit_file { 'promtail.service':
source => 'puppet:///modules/promtail/promtail.service',
notify => Service['promtail'],
}
}
if $promtail::install_method == 'archive' {
systemd::unit_file { 'promtail.service':
source => 'puppet:///modules/promtail/promtail.service',
before => Service['promtail'],
notify => Service['promtail'],
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants